.font-switcher {
  position: fixed;
  top: 20px;
  right: 170px;
  z-index: 1000;
}

.font-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e40af;
  backdrop-filter: blur(12px);
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.font-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(96, 165, 250, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.font-toggle-btn:hover::before {
  opacity: 1;
}

.font-toggle-btn:hover {
  background: white;
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: #1e3a8a;
}

.font-dropdown {
  position: absolute;
  top: 54px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  overflow: hidden;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.font-dropdown-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.font-list {
  padding: var(--spacing-xs) 0;
}

.font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.font-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.font-option:hover::before {
  opacity: 1;
}

.font-option:hover {
  background: var(--border-color-light);
  transform: translateX(4px);
}

.font-option.active {
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid var(--primary-light);
}

.font-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.font-name {
  font-size: var(--font-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.font-sample {
  font-size: 13px;
  color: var(--text-tertiary);
}

.font-check {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 18px;
}